/**
 * @className Order_table
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */

package com.hidt.shop.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

//订单表实体类
public class Order_table {
    private String order_id;//订单号
    private String order_address;//订单发货地址
    private int order_user_id;//订单人的ID
    private String user_name;
    private String user_phone;
    private float order_sum_price;//订单总金额
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date order_date;//下单日期：符合2004-12-12格式
    // 订单状态:1表示订单“待审核”：表示您的订单等待审核中。2表示订单“已确认”：表示您的订单已审核通过。
    // 3表示订单“备货中”：表示您的订单已打印，我们正在为您备货。4表示订单“已发货”：表示您的订单已出仓库，您可在网上跟踪配送情况。
    // 5表示订单“已完成”：表示您的订单已完成签收。值只能取1-5。
    // 0、待付款    1、待发货   2、已发货   3、已完成
    private int order_status;
    private int payment_id;//支付明细表id
    private String payment_way;
    private int orderis_delete;//数据是否：1为删除，0是不删除
    private List<Order_item> order_itemList;

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_phone) {
        this.user_phone = user_phone;
    }

    public String getPayment_way() {
        return payment_way;
    }

    public void setPayment_way(String payment_way) {
        this.payment_way = payment_way;
    }

    public Date getOrder_date() {
        return order_date;
    }

    public void setOrder_date(Date order_date) {
        this.order_date = order_date;
    }

    public List<Order_item> getOrder_itemList() {
        return order_itemList;
    }

    public void setOrder_itemList(List<Order_item> order_itemList) {
        this.order_itemList = order_itemList;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getOrder_address() {
        return order_address;
    }

    public void setOrder_address(String order_address) {
        this.order_address = order_address;
    }

    public int getOrder_user_id() {
        return order_user_id;
    }

    public void setOrder_user_id(int order_user_id) {
        this.order_user_id = order_user_id;
    }

    public float getOrder_sum_price() {
        return order_sum_price;
    }

    public void setOrder_sum_price(float order_sum_price) {
        this.order_sum_price = order_sum_price;
    }

    public int getOrder_status() {
        return order_status;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }

    public int getPayment_id() {
        return payment_id;
    }

    public void setPayment_id(int payment_id) {
        this.payment_id = payment_id;
    }

    public int getOrderis_delete() {
        return orderis_delete;
    }

    public void setOrderis_delete(int orderis_delete) {
        this.orderis_delete = orderis_delete;
    }

    public Order_table() {
    }

    public Order_table(String order_id, String order_address, int order_user_id, float order_sum_price, Date order_date, int order_status, int payment_id, int orderis_delete) {
        this.order_id = order_id;
        this.order_address = order_address;
        this.order_user_id = order_user_id;
        this.order_sum_price = order_sum_price;
        this.order_date = order_date;
        this.order_status = order_status;
        this.payment_id = payment_id;
        this.orderis_delete = orderis_delete;
    }

    @Override
    public String toString() {
        return "Order_table{" +
                "order_id=" + order_id +
                ", order_address='" + order_address + '\'' +
                ", order_user_id=" + order_user_id +
                ", order_sum_price=" + order_sum_price +
                ", order_date=" + order_date +
                ", order_status=" + order_status +
                ", payment_id=" + payment_id +
                ", orderis_delete=" + orderis_delete +
                '}';
    }
}
